package com.Dec_One;

public class Solution371 {

    public int getSum(int a, int b) {
        while (b!=0)
        {
            int carry=(a&b)<<1;
            a^=b;
            b=carry;
        }
        return a;
    }

    public static void main(String[] args) {
        Solution371 solution371=new Solution371();
        System.out.println(solution371.getSum(2,3));
    }

}
